package com.xyht.sca_s.student_manage_system.modules.fileManagement.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.fileManagement.entity.SmsFileManagement;
import com.xyht.sca_s.student_manage_system.modules.fileManagement.entity.req.SmsFileManagementReq;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;

/**
 * <p>
 * 文件管理 服务类
 * </p>
 *
 * @author XYHT
 * @since 2023-02-14
 */
public interface SmsFileManagementService extends IService<SmsFileManagement> {
        ResponseResult addFileManagement(Integer type, String name, String description,
                                         String p_id, String file_pic, String user_id, MultipartFile file);

        ResponseResult downloadFileManagement(String id,String path, HttpServletResponse response);

        ResponseResult getFileManagementList(String id,String searchStr,Integer pageNum,Integer pageSize);

        ResponseResult updateFileManagement(SmsFileManagementReq smsFileManagementReq);

        ResponseResult deleteFileManagement(SmsFileManagementReq smsFileManagementReq);

}
